home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
byt85jan.lbr
/
NOSQUARE.BQS
/
NOSQUARE.BAS
Wrap
BASIC Source File
|
1985-09-15
|
384b
|
8 lines
10 REM ROUTINE TO GENERATE NON-SQUARE NATURAL NUMBERS. PROGRAM CREATES AN INFINITE LOOP. HIT THE BREAK KEY TO TERMINATE.
20 CLS
30 COUNTER=1
40 NONSQUARE=INT(COUNTER+SQR(COUNTER)+.5)
50 PRINT "Nonsquare number";COUNTER;" is";NONSQUARE
60 COUNTER=COUNTER+1
70 GOTO 40